<%@ include file="/inc/header.jsp" %>

	  <link href="<html:rewrite page="/css/calendar.css"/>" rel="stylesheet" type="text/css"/>
      <script src="<html:rewrite page="/js/calendar.js"/>" language="JavaScript1.2"></script>
      <script src="<html:rewrite page="/js/calendar_suite.js"/>" language="JavaScript1.2"></script>
      <script src="<html:rewrite page="/js/calendar-fr.js"/>" language="JavaScript1.2"></script>

      <span class="titrePage">
         <bean:message key="entity.Note"/>
      </span>
      <br/>
      <br/>
		<script language="JavaScript1.2">
			function reloadAction()
			{
				document.MultipleNoteForm.action="<html:rewrite page="/initMassiveNoteAction.do"/>";
				document.MultipleNoteForm.submit.click();
			}

			function selectAll(selectTagName)
			{
				var selectTag = eval('document.MultipleNoteForm.'+selectTagName);
				for (i = 0; i < selectTag.options.length; i++)
				{
					selectTag.options[i].selected = true;
				}
			}
		</script>
	  <blockquote>
	     <common:errors/>
	     <common:success/>
	     <html:form action="/massiveAddNoteAction" focus="idCategorie">
	
	      <table cellpadding="5" width="50%" cellspacing="0">

	     <tr>
	        <td width="30%" align="right">
	           <span class="label">
	              <bean:message key="field.categorie"/>
	           </span>
	        </td>
	        <td width="70%">
	        	<teachertools:category onchange="reloadAction();" />
	        </td>
	     </tr>
	     <tr>
	        <td align="right">
	           <span class="label">
	              <bean:message key="field.matiere"/>
	           </span>
	        </td>
	        <td>
           		<teachertools:matiere onchange="reloadAction();" />
	        </td>
	     </tr>
	         <tr>
	            <td align="right" valign="top">
	               <span class="label">
	                  <bean:message key="field.competence"/>
	               </span>
	            </td>
	            <td>
	           		<teachertools:competence bean="competence" lines="7" multiple="true"/>
	            </td>
	         </tr>
	     <tr>
	        <td><span class="label"><!-- bean:message key="libelle.selectAllSkills"/--></span></td>
	        <td><input type="button" value="Tous" onClick="selectAll('competence');"></td>
	     </tr>
	     <tr>
	        <td colspan="2"><hr/></td>
	     </tr>
	     <tr>
	        <td align="right">
	           <span class="label">
	              <bean:message key="field.classe"/>
	           </span>
	        </td>
	        <td>
              <teachertools:classe onchange="reloadAction();" />
	        </td>
	     </tr>
	         <tr>
	            <td align="right" valign="top">
	               <span class="label">
	                  <bean:message key="field.eleve"/>
	               </span>
	            </td>
	            <td>
	               <html:select property="eleve" size="10" multiple="true">
	                  <logic:present name="ELEVE">
	                     <html:options property="id" labelProperty="nomComplet" collection="ELEVE"/>
	                  </logic:present>
	               </html:select>
	            </td>
	         </tr>
	     <tr>
	        <td><span class="label"><!-- bean:message key="libelle.selectAllStudent"/--></span></td>
	        <td><input type="button" value="Tous" onClick="selectAll('eleve');"></td>
	     </tr>
	     <tr>
	        <td colspan="2"><hr/></td>
	     </tr>
	           <tr>
	              <td width="15%" align="right">
	                 <span class="label">
	                    <bean:message key="field.dateNote"/>
	                 </span>
	              </td>
	              <td>
					<common:dateField fieldName="dateNote" formName="MultipleNoteForm"/>
	              </td>
	           </tr>
	           <tr>
	              <td colspan="2" align="center">&nbsp;</td>
	           </tr>
	     </tr>
	        </table>
	
	        <br/>
	        <br/>
	        <input value="<bean:message key="button.massiveadd"/>" type="submit" name="submit"/>
	        <teachertools:cancelButton />
	     </html:form>
	  </blockquote>

<%@ include file="/inc/footer.jsp" %>
